import http from '@/utils/http'
//  登录
export const loginApi = (data) => {
    return http.post('/auth/user/login', data);
}
//  验证码
export const codeApi = () => {
    return http.get('/captcha/get');
}   
//  当前用户
export const currentUserApi = () => {
    return http.get('/auth/user/current');
}
//  用户分页
export const usePageApi = (data) => {
    return http.post('/auth/user/page',data);
}
//  用户详情
export const useInfByIdoApi = (userId) => {
    return http.get(`/auth/user/info/${userId}`);
}
//  用户修改
export const editUseApi = (data) => {
    return http.post('/auth/user/edit',data);
}
//  用户新增
export const addUseApi = (data) => {
    return http.post('/auth/user/add',data);
}
//  用户删除
export const delUseApi = (userId) => {
    return http.get(`/auth/user/del/${userId}`);
}